package com.webdemo10.util;

import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.WebApplicationContext;

public class SpringHandler {
	
	private static WebApplicationContext applicationContext;
	static{
		applicationContext = ContextLoader.getCurrentWebApplicationContext();
	}
	public SpringHandler newInstance(){
		return new SpringHandler();
	}
	public static WebApplicationContext getApplicationContext() {
		return applicationContext;
	}
}
